How have you gotten over that hump? Did you try to code something every day/week? And for practicing code did you just remake a feature over and over until you really understood it?
Game Jams can be stressful even if you do know what you're doing. If you're getting burnt out you might want to try and make a project without a set deadline and just focus on learning the basics at a comfortable pace.
That’s actually what I have been doing, so I joined a jam so that I had a deadline to work towards. In retrospect it might’ve just been such a short time frame (only like 5 days) that it ended up causing more burnout