I can give you a solution to the boredom problem.
But you will not appreciate it if you do not explore the problem.
So ask yourself this:
1. What exactly is boredom?
2. How do you know when you are bored?
3. Were there times when you were not bored at all, and somehow boredom crept on you? If so, how did it happen?
4. Conversely were there times when you were most bored and suddenly something sparkled your interest? If so, what made the difference?
Investigate boredom in this way for a while (use the practice of your sonata to this effect), and once you have a bit more insight into the boredon phenomenon, I will suggest a solution.
By the way, you do not need to answer these questions here in the thread (but you may if you want). But you need to consider them for yourself, otherwise you will not appreciate the solution.
I will post this solution in one week's time. (One week should be enough for your investigation).

Best wishes,
Bernhard.