You should definitely quit!
I appreciate your decision to learn something in deep. However, I think you've three options
1) Take a break from work for 6 months or so, learn what you want in deep
2) Join in a company which have less working hours, (or remote-friendly) so you can study at the rest of the time
3) Join a startup-like company. You can work as well study at the same time.
Working in a company with other engineers can also help you to learn other things that will be difficult to learn if you're alone. Like how devops work, good communication skills, best practices, code reviews, etc