How can you reduce an unacceptable risk of a function to an acceptable level?

With implementation of safety mechanisms which mitigate internal system faults
By stopping function in case of an error