It is also possible that you have an emotional burnout. I advise you to take your learning slower and to take time. Rest. Relax.
I remember I didn’t want to code for about a month. Moreover, I felt disgusted. It was terrible. Clearing my head helped me. I read books, watched TV shows, spent time with friends. With time my wish to code returned.
Take a break. We are all people. Do not rush.