The computation of an internal interest rate (IRR) is based of the entire sequence of cash flows during the considered period. There must be a positive and a negative number in the sequence.
In your case, you can only compute IRR after 24/08/2022 to be mathematically computable, but it does not make sense from a financial point of view.
Try with a simpler cash flow sequence of a 10% yield 3 years bond of USD100 value:
2023 -100 (you buy the bond)
2024 +10 (1 year coupon)
2025 +10 (2nd year coupon)
2026 +110 (last year coupon + principal repayment)
If you compute the IRR for the complete 2023-2026 sequence you'll find 10% as expected.
But if you compute it on the 2023-2025 you'll obtain -63%! (it is a valid number only in case of complete default)
And if you try to compute on 2023 only you'll get an error.