That’s classic timing for a pump to die on you! From what you describe, it sounds like the motor might be overheating or the capacitor could have failed, both pretty common in hot weather. You can check simple things like making sure the strainer basket isn’t clogged and the power supply is solid, but beyond that, messing with the motor yourself can be risky. I’d call a qualified pool technician rather than trying to open the motor, especially with summer heat driving water demand. In the meantime, keep the pool shaded if you can and avoid swimming until the pump is running again, otherwise the water could turn green fast.