Sadly, there isn't any bullet proof solution. Like in every server you run, you can run out of memory.
What happens is that Crawlee will not scale up if it is getting close to max memory but if there is some huge random spike (like you parsed some huge HTML page), it can still happen. You can do 2 things:
1. Check that you are not storing any big data into your memory objects. Ideally the handlers just push data and you don't keep anything in memory long term.
2. Slow down scaling, look at the autoscaledPoolOptions, you can make it slow down going up and be more worried about memory rate.