Parrot OS get fully stuck

Parrot os becomes fully unresponsive(but I can move mouse cursor but click won’t count to action) whenever I try to debug the flutter app and search query on brave at the same time.
Memory uses get increased to straight 100% and have to force restart.
I am using laptop with Nvidia GeForce mx110 with SSD and 8GB ram