Hey and welcome, I am an engineer of technology, and I don't either understand a shit of these bikes – they did not teach these in the school of engineering :D

Anyway, could it be that your air filter is in bad condition? Theory: when you rev a lot, the bike stalls, indicating that there is a possibility that the air filter has gone bad, the engine gets flooded by gasoline as it gets too little air for balanced burning? I would start the troubleshooting by simply cleaning the air filter, and after that check it is not fuel what the engine does not get enough. There should be a fuel filter on your bike which could had become clogged, if it is a TIC fuel filter, you just should replace it anyway before it goes bad.

Edit: Of course you should check the carburator settings too, but if you don't understand a bit of your bike, then I would recommend trying to adjust the carb as the last resolt.