Sorry to hear that they died with covid.
The change of prepositions doesn’t make me feel your expression of sympathy believable.