Unable to Cancel Purchase Invoice when open, can be deleted from list view

After Version update to 12.6.0

Purchase Invoice when open cannot be cancelled, system freezes for a while.

But when the same task is performed from List view it is cancelled

I have noticed, this happens only in Invoices with a lot of items like above 100