Ceiling fan stops running after a while
The fact that you have to toggle the switch to get it going again leads me to believe you've got a bad switch or maybe it's wired by utilizing the backstabs.

Try switching the light and fan switch to see if the problem "moves" to the lights or stays with the fan. Don't disconnect anything until you've taken a few pictures for reference. Also, turn off the breaker before you do anything.