The current situation is going to be reviewed in 3 weeks. I'm sorry you feel his you do but try not to think in terms of 2 years as that will seem like an insurmountable hurdle. (No-one knows but there isn't any reason to think it will last that long and certainly this level of lockdown won't).
Are you on medication and being treated for depression? You, sadly, seem to be caught up in a very negative frame of mind.
Why would you assume you will catch CV and die? If you follow the rules you will be protecting yourself and your family as much as possible.
Can you video phone your parents regularly to keep in contact? We are doing this to keep people like your parents alive for you to enjoy happy times with.
Look at what we can do, not at what we can't:
We can still go out infrequently to shop for food and medicine.
You can go out for a walk with your child once a day.
You can watch TV, listen to the radio, read, do a puzzle, soak in the bath, do any other indoor pursuits you normally do, enjoy social media, phone friends and family.
You can spring clean your home, enjoy your garden if you have one.
There are so many things we can do. Try not to focus on what you can't do.
It's a lovely sunny day today. The birds are singing lovely tunes to us. Try and find a little bit of happiness in everything that is good. There will be happy times again for you in the future but just try and get through these more difficult times as best as you can.