It seems that you're trying to add a transaction in closed books. Let me help you.
When you close it, it prevents you to make any changes to transactions dated earlier than the closing date. We can open it or change the date to fix this error.
Although this will allow you to save the transaction, it is still best to seek some help from your accountant. They may have a different way to record it without editing the closed books.
For more tips and references in managing your business, visit this page: QBO Help Articles.
Do you have more concerns? Just post again here. Thanks!