Yes the issue of the out of memory is an infinite loop in your WHILE when every platform has negative y due to the overlow at 32768.
It is very unlikely this happens in one run so maybe you could reset every y (player, platforms, etc..) as soon as you end your run landing on a platform? Or whatever takes less chars





















