Flash drives are popular data storage devices due to their ease of use and portability. However, they can experience data…