I cannot imagine any reason you'd want to crash a program on purpose other than reproducing a bug (which this is clearly not about!). So I assume your actual question is how to quit the game, in which case the answer is the following line of code:
get_tree().quit()