There is a bug since version 12.6 (last build 4081), it was ok with version 12. I just launch a migration.
The Crash appears on retrieve, if a sort exist on computed field (sum of column),
or on fonction sort() with the same context.
You posted your question in the Blog area. I would recommend that you delete this post and repost this question into the proper "discussion" area.
Regards ... Chris