Camera filenames like IMG_4821.JPG tell you nothing, and they start over after the counter rolls. The date is already inside the file, so I’d let ExifTool do the renaming and stop sorting by hand.
exiftool '-FileName<CreateDate' -d %Y%m%d_%H%M%S%%-c.%%e photos/
This is the renaming example from the ExifTool manual. Every image in photos/ gets a name like 20261201_143005.jpg, built from its CreateDate. The -d option sets the date format, and %%e keeps the original extension.
The %%-c part matters when two shots share the same second, which happens with burst mode. If the target name already exists, ExifTool adds a copy number with a leading dash, so you get 20261201_143005-1.jpg and nothing is overwritten.
Quote the whole tag argument. In a shell, a bare < is a redirect, so without the single quotes the command does something else entirely. Add -r to include subfolders. Files without that date tag are left alone, but ExifTool does not warn loudly about it, so look at what was skipped.
Renaming cannot be undone with a command, so I’d run it on a copy of the folder first.
Further reading: ExifTool application documentation