SSD with O.S. is failing but Umbrel is on another ssd

My node is installing on a mini pc. I have a 240gb ssd, which runs Ubuntu Server. Umbrel is installing on a second 1tb ssd. But recently my system is experiencing consecutive failures on the 240gb ssd (bad sectors). Is there any way I can replace just the ssd with the O.S.?

If the answer is yes, what should I do? Should I install a new ubuntu, on a new ssd and then install docker, docker compose? After that, connect the second ssd and start umbrel scripts?