Probably don't need to overthink the rotation order because there are pros and cons to any clerkship order.
Here are some questions: What interests you the most? Any ideas? What are your goals?
More of your attention and time will be required in specialties that require a lot of work with inpatients (IM, Peds, OB/Gyn, Surgery).
FWIW ... since internal medicine provides you with a basic framework upon which to expand your medical knowledge, it is useful to complete your IM rotation early (and before surgery). On the other hand, if you do not want to do surgery, maybe get surgery out of the way first. You might consider OB/Gyn before general surgery, too. In OB/Gyn you'll become more familiar with basic surgical skills, which you can later use in surgery. Consider FM after Peds, IM and OB/Gyn. Most of the time, Psych is less time-intensive. IM and FM later might help with your step 2 review.
Try not to stress too much about clerkship order ... you'll be okay.