Unfortunately, this is something all college students seem to struggle with. There is no guarantee that every paper you write or class you take will interest you or be something that you are passionate about.
The best thing to do in this scenario is to find an angle on the topic that does interest you, even if it is only a little bit better. Try to learn as much as you can about the subject, and find something that speaks to you and lean into it.
If all else fails, focus on devoting the time to writing the paper no matter how hard it is. Not everything is going to interest you every time. If at all possible, try to knock it out in one sitting rather than having to torture yourself again and again.