It's impossible to exit nano under Lightsail. Typing Ctrl+X or Ctrl+Shift+X simply types an X on the screen.
In fact, typing Ctrl+ anything just types the letter, making nano effectively useless.
How are you connected to your server? Are you running an SSH connection from your server terminal or are you using a third-party program?