Move your camera folder inside DCIM to camera_old.
Restart Camera app.
Hopefully everything will work fine like it did in my redmi note 5.
Didn't find a way to copy videos and images to the new folder though. When i do that, the problem reoccurs.
Maybe there is a bug when the number of files is...