I went through periods like that off and on my entire life until I was diagnosed with ADHD in my late 30s. What I've come to find out is that generally those periods have an underlying cause. Figure out/tend to the cause, and these effects lessen drastically.
Everyone is different so that may not necessarily apply to you, but I'm hoping that describing my experience may help you in some way.