Why does my hotspot stop after a period of time?
You most likely have a hotspot timeout setting enabled.

You can disable it by going to your Advanced Hotspot Settings, and editing the timeout value to never.

Note that in some versions of Android in order to access the Advanced Hotspot Settings you need to first access the WiFi Hotspot Settings and then press the phone's Menu button.