Hi
@AnkitParab,
Could you check on your device if you have the setting "turn off hotspot automatically" function set by default to X minutes instead of 'Never'?
You can check by following these steps;
Settings-> Network & Internet -> Hotspot & tethering -> wi-fi hotspot -> turn off hotspot automatically.
If that was set already to never, could you back up your data and perform a factory reset and see if this will solve it.
Let me know if otherwise.