There's not many things that would cause fuel starvation. Have you disconnected the fuel line from the carb & tried draining the tank into a container, confirming there is good flow?
A pinched or twisted fuel hose would restrict flow, possibly causing the starvation.
Is the air cleaner clean, and is plenty of air getting to the carb? Also, is the choke returning fully home & staying in the "off" position?
From working with carburettor fuelled vehicles for some years, many "carb issues" are not actually carburettor related.
You say this issue happens while you are riding; I take it it doesn't happen while on the centre stand ? The side stand cut-off switch has been the cause of problems for a few riders, with the side stand "bouncing" as the bike is ridden along uneven surfaces, causing the engine to cut off.