Could be starvation, have you checked the fuel flow, sometimes the banjo filter blocks up, or it could be something as odd as the fuel tank breather.
I had a once harley that if you filled it to the brim, would do the same until the tank level dropped.
If its missing when it reaches the wall, it could be a broken valve spring.