Arduino nano, disable power from USB

Where is VIN coming from?

Perhaps you could provide a more detailed description of your application/project?