It seems indeed related to RAM usage, I haven't got this issue again (yet?) since upgrading from 8GB to 32GB on my Mac Min 2018. But it should not crash the whole machine, Apple needs to fix this issue ...
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: