So transfer the entire balance to a paper wallet, for example?
No, you don't need to transfer them to a paper wallet you need to transfer them to the same wallet.
I forgot to include the guide from LoyceV so better checks the link from his post above it should be the right way how to consolidate the transaction.
As you said above that you have lots of small inputs which might be the reason why the ledger live and Electrum crashed.
Choosing inputs manually can help to avoid this error unless you are planning to withdraw them all.
I suggest if you want to withdraw or send them all consolidate them if you have 100 or more inputs divide them into 3 or 4 or it depends on how many inputs you have so that you can consolidate them without any error from ledger live and Electrum.