Take a rest to get back to sharpness
Sometimes golfers just go through the motions of turning up, practicing and playing.
How can you play to your potential and improve your game if you are neither interested, nor enjoying, your golf and you are just going through the motions?
Make the game more interesting and enjoyable and see the benefits. Change the way you practice and play. Be creative. Let go of what you are conditioned to think of as correct practice etc.
Alternatively, take a complete break from the game and return when you feel excited to play again.
It is often true that less is more.