These actions are known as "night crazies", These phases last a minute and your cat will not be in pain or suffering. Most cats just need to spend the excess energy. Cats spend almost 15 hours per day sleeping. House cats don't need to hunt for a living. They need to run an stretch from time to time. It's part of their life to have a crazy minute of their own!
You should only be concerned if there is a lot of meowing involved. it could be a flea bite in a part of the body your cat cannot scratch. If you suspect your cat has fleas you should de-flea your cat and your apartment immediately.
A more serious condition that would require veterinary care is rippling skin disorder. If the sking on your cat's back seems to be rippling while he's running or if your cat bites his back above the tail, you should bring your cat to the vet for a check and eventually for some treatment options.
Hopefully your cat is just streching and having a good time.
Remember to book your next cat boarding or sitting service in advance. Our caregivers will take good care of your cat while you're away.