You can save back your 5$/month by increasing your machine’s swap space. I did the same when more memory was only required for compiling.
https://www.digitalocean.com/community/tutorials/how-to-add-...
https://www.digitalocean.com/community/tutorials/how-to-add-...
(ps: bad grammar, on mobile)