Bizarre crash in T-SQL - what is it?
This looks like a failed assertion in SQL Server code.  Basically, you've uncovered a bug in SQL Server.  You could submit it to Microsoft.

A quick solution is to add option (maxdop 1) at the end of your query; this instructs SQL Server not to spread the query over multiple processors (aka parallelizing.)