Warm is normal, “ouch that’s hot” usually isn’t, especially if it’s getting worse the longer it runs.
One thing I don’t see mentioned yet is back pressure from the rest of the system. If the filter is dirty, valves are partially closed, or the return eyeballs are very restrictive, the motor can end up working outside its happy zone. That extra load turns straight into heat. I had a pump that ran scorching hot and it turned out my filter pressure was sitting 8–10 psi higher than normal because I’d been putting off a backwash.
Another sneaky one is run time during the hottest part of the day. Motors rely on airflow and ambient temps matter. When mine ran from late morning through afternoon, the casing was way hotter than when I shifted the schedule to early morning and evening. Same pump, same plumbing, totally different temps.
Also pay attention to sound. If it’s noticeably louder, has a dry whine, or a rough vibration that wasn’t there before, that usually points to bearings starting to go. Heat plus noise is a bad combo. If it’s just hot but otherwise smooth and quiet, it’s often airflow or system resistance rather than imminent failure.
If it were mine, I’d check filter pressure against your clean baseline, make sure vents and fan shroud are spotless, and see if changing run hours helps. If it’s still borderline untouchable after that, getting it looked at sooner is smart. Motors rarely give a second warning once they cook themselves.