silver lining
Sorry for your loss.
We cannot give detailed financial advice on the forum, you need to speak to a qualified advisor, do an internet search for "welfare advice" with your postcode, town or county.
If you are receiving Contribution Based ESA then you savings and assets are not relevant to the claim.
If you are receiving Income Related ESA in part or in whole then your assets and savings are relevant to the claim, I am afraid that I cannot state whether this inheritance will count now or only when it can be realised.
Gordon
Nothing on this board constitutes legal advice - always consult a professional about specific problems