Here are the steps I’ve already tried (from a commonly suggested solution):
Stopped all XAMPP services and exited the application.
Went to C:\xampp\mysql directory.
Renamed the data folder to data_old.
Created a new data folder and copied the entire content of the backup folder into it (except ibdata1).
Copied all folders/files from data_old into the new data folder, making sure not to replace any existing files (skipped replacements).