there are a couple of different options:

You can book an accommodation and stay the night. Make sure you book in advance because the accommodation are usually fully booked close to the party. Most accommodation have a minimum of 3-7 day stay.

Party all night and take the first (or later if you feel like it) ferry home. If it’s possible leave your bags at someone who you trust close to the party.

If your lucky enough you could try to stay the night with your hookup.