Here is an attempt to answer your question about why flash drives sometimes fail. Basically, the problem has more to do with a flash drive and less with the computer. Nevertheless, in some cases it seems like some computers are more sensitive than others.
Look at this:
https://www.engadget.com/2011/09/07/reasons-why-usb-thumb-drives-are-the-wrong-choice/I do not have available all the technical facts about how flash drives work, but there are three general areas of concern.
The first is the issue of economy. At one time flash drives were very expensive, but in time the price has come down quite a bit.
Reliability has also been an issue with flights drives. The better quality drives made by the major manufacturers are quite reliable. Still, there are unbranded flash drives that come from unknown places.
One of the most important features of a drive is it speed. There is both a read speed and a right speed with the right speed usually being slower. In some cases a flash drive for fail because the computer is unable to format the flash drive. I have noticed that some flash drives are very slow to format and this might be do to some kind of weakness they have in the right mechanism.
In general, you have to pay more attention to the brand name and the price of the drive. Very low prices almost always indicate that there is been some compromise in either the reliability or the speed.
If you have a flash drive that appears to be unreliable, the best choice is to just stop using it and buy a replacement. In a few cases there might be something wrong with the computer, but that is much less likely if the proper drivers have been installed in the system.
I hope this gives you a general answer to your question.