Login Shield Mod (1.18.2, 1.16.5) is a simple server side mod that protects users from being damaged during login. It can be set to stop protecting players when they are able interact with the world. You can configure the option to teleport players from the void. This mod can also be used on the client. In this instance, it only affects one-player worlds.