I have just discovered NumPy has an exception "numpy.exceptions.TooHardError" that it can throw and this is absolutely delightful to me. You asked a calculator to solve a math problem and it was like "THAT'S TOO HARD. :( ASK A DIFFERENT ONE"

https://numpy.org/doc/stable/reference/generated/numpy.exceptions.TooHardError.html

numpy.exceptions.TooHardError — NumPy v1.26 Manual

"I'M REALLY TIRED, OK?"
@mcc numpy has better exception handling than I do