"lxc profile edit" confused by nanorc

Yeah, that’s because the snap itself includes nano, it tries to be nice and read your config but doesn’t actually have to your full system.

Do you have EDITOR set in your environment?
If you don’t, can you try setting it to EDITOR=nano to see if that causes the snap to spawn your OS version of nano.