It's a good idea to try removing some lines and see what causes the crash.
It might be that it's not a teleport thing. It looks fine.
I tried a new map with a barebones Script.
It does not crash but it freezes and i have to alt+F4 out of it.
player teleport 16 30 0
map return
I have no clue what to try now.
It would be nice if they would finally write the manual, including the script part... :/
You can find most of it in the EFPS wiki
https://ragnarrandom.com/uefpsew/index.php/Old_Manual_Scripting