it occurs when signing.
Ledger
posted about this last year:
Sending a large number of transactions to a Ledger hardware wallet is troublesome.
And their "solution" is nothing we haven't discussed yet:
Try to consolidate your coins by sending a few larger payments to yourself. For example, if you have received 1,000 times 0.001 BTC, consolidate these inputs by sending 0.1 BTC to yourself and repeat this 10 times.
Alternatively, import your 24-word recovery phrase into a software wallet (at your own risk), preferably an offline one, and empty your account balance into an address that is derived from a newly generated seed.
Wild-Interaction on Reddit solved it by using his Trezor:
I "solved" the issue by not using Ledger. In this case I had a Trezor initialized with the same seeds so I just used that to transfer all my BTC out which took Trezor less than a second to sign (as expected).