The error in nano says “No space left on device”. Have you checked that you haven’t run out of disk space?