I hope everyone is well. Firstly, just a big thank you for your help with the relay issue - that problem was solved, met with another where the bike wouldn't charge, and solved with a new stator... And yet, the issues persist

The latest being... I started the bike up today, no problem. Fires straight away, and idles lovely. Took it for a 20 minute test ride with the new stator installed and fresh oil. Toward the end of the journey the bike started to run poorly at low speeds. I took it easy en route home, and in the driveway let it idle. It idled really intermittently. Sitting at 1000rpm and spluttering about to as low as a few hundred. Some audible pops could be heard underneath the tank, and placing my hands on the tank, you could feel them too. After about 40 seconds of idling, it just cut out.
Anyone have any idea? Possible vacuum problem? Would that be the case if it runs perfectly before it gets warm?
Ta in advance!
Unlucky Kyle