Sounds as if the ignition system is breaking down under load.

IF the engine will rev up in neutral then that points out that you are most likely getting enough fuel.