If it only happens in NAPS2 then recreate your profile in NAPS2 and try with that new profile, if that fails reinstall NAPS2
If it happens in any application reinstall the Twain/WIA driver via Scanner and Cameras
Assuming not only failing in NAPS2 what error do you get in Windows Fax and Scan ?