You’d be better off to try and understand what’s using all the memory.
What does top
show?
As per this post it might be helpful to capture all the files in /var/log/atop
I have no idea of the config on your router, or its average memory load though, maybe you DO need more RAM? I doubt it though if it’s been stable with this amount previously.