That's the exact reason one needs a dedicated backup drive, can be made of spare components, but also are on promo for as little as $45 for 500GiB, or $49-55 for 1TB. Actually, spare computer components can be found for next to nothing, all one has to do is ask around. Many retail backup drives ships with their own backup software, or one can use Macrium, Todo or Aomei Backupper Free, as well as many paid backup software choices.
And keep at least two Full Drive images on it. That way, should the worst happen, one's prepared. Up & running in 30 minutes to an hour, rather than days.
There are also no cost bootable partition tools that can recover lost partitions, provided the space hasn't been overwritten. Such as the AOMEI Partition Assistant, though it requires installing on a working Windows install & bootable CD created for scanning the computer for lost partitions.
And here's their backup software.
However, as I stated above, it's not too late to recover that lost partition, provided it's not overwritten. And finally one has to keep in mind their their primary computer is not for risky practices. While I have no idea of how this happened, had the OP asked before the damage was done, could have been instructed on how to safely proceed. Only play on secondary computers. There are many to be had from free to $25 to play with Linux on.