I own a movie called “The 13th Floor” that addresses this. It’s a great story.
Another great Matrix clone is Polish/Japanese movie “Avalon”, available on Amazon.
By the way, there are several movies called “Avalon”. I am talking about the one directed by Mamoru Oshii.