I'm so sorry for loss, and for their crass, insensitive timing.
At the moment you're in turmoil, grieving, worried about income, concerned about your reputation and prospects.
This is all absolutely understandable - be gentle with yourself.
Some therapy for the grieving process.
Investigate if you might qualify for some benefits to tide you over financially.
Push for any severance pay you might be entitled to. (Talk to acas, your union, if necessary)
And work on a change of mindset when you feel stronger.
I was fired nine months after I started a 'permanent' full time role nine years ago. I was aware they were casting about trying to find things for me to do. Eventually I was called in, handed a letter, told don't come in tomorrow and we'll give you a couple of months pay in lieu of notice.
It's possible they can't afford you, felt the job you were doing was complete, don't have much work to justify keeping you on, are making 'efficiences' (🤮) in other areas, are in trouble ... If there is no concrete feedback you can actually use - put it down to life experience. It will recede into the past very quickly. Your goal is to push it down and overlay it with better, current experience.
The important thing is the way you think, speak and write about that experience.
What did you learn? Achieve? Deliver? Any transformations, savings, testimonials you can quote?
Polish up your CV asap, and your LinkedIn profile with that up to date info. Positive, proud of what you did with that time and experience.
Ask good colleagues for LinkedIn recommendations - they're valuable.
And do what I did - refer to that engagement as an FTC - fixed term contract. The more you write and say it, the more you will believe it yourself.
A reference is just to confirm you did work there for that period. Secure that confirmation, those contact details, from HR asap. It's not about how well they think you did it.
Stay polite, pleasant and businesslike however you may be feeling in all your dealings with them - and how you talk about them. You never know.
All the best.