There is a similar case where the user mentions that he fixed his issue by "changing the compiler" with no further explanations.
https://devzone.nordicsemi.com/f/nordic-q-a/30208/exit-c-text-exit-0x16-undefined-reference-to-_exit
I have the same issue. How do I change the compiler? To what?