Nano and micro instances are small, which means you quickly hit memory limits.
The main challenge is that applications running out of memory tend to be OOM killed without clear log messages.
A way to work around this is to activate swap. This will slow down the app if swap is used instead of having the app crash which will make it more easy to see and troubleshoot.