You are in EU?
Simply get residency in country without inheritance tax.
I did.
Or, use US banks.
"Countries like Belgium, France, Spain and the UK impose relatively high inheritance taxes, particularly on distant relatives or non-family heirs.
In contrast, nations like Austria and Sweden have done away with inheritance taxes altogether, making them attractive destinations for those looking to minimize their estate tax burdens."
The world;
https://www.lorenz-partners.com/list-of-countries-with-no-inheritance-tax/