First you will need to press the Home button on your right Joy-Con. Then highlight Fortnite on your Home Screen, and press Y to close the app. When you do this you will log out of the Fortnite servers on Nintendo Switch. You will then have to re-launch the game to log in to another account.