i had symptoms that you describe,

turned out my fuel pump was dying, and i was losing fuel pressure.

let the pump have a break, and it would work well for another ~20mins.

might pay to get a fuel pressure guage from autobahn, they are like 30$.

also dive inside that ecu, see if there is any errors etc

i replaced almost everything before i realised it was fuel delivery problem.