Find the word definition

Wiktionary
turn to custard

vb. (context New Zealand English) To go badly awry.