It looks like a cascade of errors that probably started with one error whose “bad” result was fed into subsequent calculations. If you want help fixing it, you’re going to need to provide your code, the input.