The error "The parameter is incorrect" sometimes appears with Windows Store apps, such as Photos, and can often be resolved by repairing, resetting, or uninstalling/reinstalling the app. The options are found under Settings, Apps, ⋯, Advanced.
Note that "Reset" delete's the app's "data" (which typically means its settings). It does not delete your photos.