I was in a raid when I could not find the remaining raiders so I tried the command /kill @e[type=minecraft:raiders] and it immediately not only killed the raiders, but every entity and player that was loaded in. After taking a lot of time to fix everything and spawn all my mobs back in I restarted the server and the same thing happened except no players died, just the entities in active chunks. This happens every single time the server restarts.