The unexpected disk is write protected is unfortunately often a failure message.
.
The flash drive can be tested for confirmation.
.
https://www.tenforums.com/tutorials/3548-enable-disable-disk-write-protection-windows.html
Sometimes when a SD card or USB flash drive gives a This drive is write protected error, the device may have failed. The write protected error is an attempt to protect from data loss, so you can copy the contents from the device to another storage location. In this situation, nothing can be done for the device. It's dead.
.
.
.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
.
.
.