If it is in a testing situation, you could restart the server to end all sessions.
If it happens in production: you could make sure users log out and finish a user session, or increase the the license for example.
Do note that when this happens in production that nobody can log in untill some user accounts are deactivated and you are again below the license threshold.
Regards,
Ronald