Purchase Invoice auto change Expense Head

When creating a Purchase Invoice, the Expenses Head field always automatically records account 2210 and displays the following message:
“Row 1: Expense Head changed to 2210 - Stock Received But Not Billed - ABC because expense is booked against this account in Purchase Receipt MAT-PRE-2024-000XX.”
I have checked the Expenses Account setup in Items, Purchase Order, and Purchase Receipt, and I am sure that I have set up the account linked to my Budget.
How can I edit the Purchase Invoice and use the account linked to my Budget?

ERPNext: v15.24.1
Frappe Framework: v15.28.0