More Generator Questions
400 hours is NOT a lot of time on a generator. Generally, without knowing the model or brand, 1500 hours is usually the time for an overhaul. Will go longer if well cared for. Check your owner's manual for maintenance at regular intervals.
Secondly, your stalling problem could be a number of things, but my best guess would be a clogged fuel filter.