Add arithmetic exception primops (#14664)
Fix #14664 (closed) by adding 3 primops to raise Overflow/Underflow/DivideByZero arithmetic exceptions.
It is required by !2231 (closed) to replace the hack suggested in #14664 (closed) that we currently use.