Make sure your usb port clean , if so go settings>apps>3 dots upper right corner tap system apps and find usb settings and clear its data and force stop it
If those don't work , you probably going have to factory reset , this is done by system UI , safe mode it didn't work that means no 3rd party apps were conflicting.
I messed with these settings didn't Matter it still showed