I just noticed that the TGrains ugen is limited to 16 output channels. If you use more, scsynth crashes. The offending lines can be found in DelayUGens.cpp from line 5392 onwards. Maybe some kind soul could fix this at the next occasion or add a line to the help page? Thank you!
Please report this on GitHub!