of suggestions here that are going to waste a lot of time.
First don't bother trying to copy programs from your old Windows system to your new Windows system. Its a waste of time. Plan on reinstalling all of the programs you use right from the start. What you want to copy is your user created files. Documents, videos, pictures etc.
Ok, get a USB flash of some decent size. 256gb for instance. Thats assuming you don't have more data than 256gb. Bigger is better.
Copy to your USB flash drive at least the following directories from C:Useryourusername
Contacts
Desktop
Documents
Downloads
Favorites
Music
Pictures
Videos
Next enable hidden files in your old Windows system. There are a number of paths to do this. This is one.
https://support.microsoft.com/en-us/windows/show-hidden-files-0320fe58-0117-fd59-6851-9b7f9840fdb2
Now when you look in C:Useryourusername you'll see a directory named "AppData"
In that directory are 3 folders. Local, LocalLow and Roaming.
In each of those directories you should find a folder called Mozilla. That is where all of your user data is stored for Firefox.
On your USB drive make a new folder called AppData
Once that folder is there open the folder and create new folders named Local, LocalLow, and Roaming.
Copy the Mozilla files from the same named folders on your old computer into the new same named folders on your USB Flash drive. Thats everything from Firefox.
Once you have your data backed up to your USB flash drive do a complete Virus scan before trusting your old data. Do this BEFORE the next step.
Once you have your new system up and running just copy everything from your flash drive to the same named user folders in your new system. Do this before you install Firefox.
That should do it. Save the USB as a backup in case your new system has a problem.
BTW, its likely your old system is perfectly fine. Windows (the software) degrades over time. Once you're sure you new system is working properly a complete reload will make your old system act like a brand new computer.
If you have more questions let me know. I'll pop in later to see if you do.