I'd say the choice of language you write your OS in is a pretty important one. There should be a fierce debate about such things.
You'll need languages and operating systems that are battle-tested (literally) in hard-real-time fault tolerant systems.
Swift should never have been on the whiteboard for something like that. It's never been used in that scenario.
For example you might use C, but ban malloc, and recursion. There will be static analysis tools that look through your code and calculate exactly how much memory you are using using in the worst case of function call tree, that way they know they cannot run out of memory or stack.