Short answer: Back up your photos first, then use the duplicates or clean-up view of your gallery or cloud photo app, or open the Files app, browse Images and sort by name or size. Exact copies can go once you have checked which folder keeps the one you want; similar shots such as bursts need a look by eye. Delete in small batches, so the trash folder can still undo a mistake.
Why duplicates appear
Messaging apps save received photos into their own folders, editors keep the original and the edited copy, burst shots create near-identical frames, and screenshots are often taken more than once. Some are exact copies; many are only similar.
Exact copies vs similar photos
Exact duplicates are byte-for-byte identical files and are safe to treat as one. Similar photos - bursts, slightly different angles - are not duplicates: one of them may be the good one. Review similar photos by eye.
Find them with the tools you already have
Your gallery or cloud photo app may offer a duplicates or clean-up view. Otherwise, open the Files app, browse Images and sort by name or size: copies often sit side by side with names such as IMG_1234 and IMG_1234(1). Also check the folders created by messaging apps.
Back up before you delete
Make sure the photos are backed up before removing anything, and check the backup contains them. Deleting through the gallery or Files app lets you use the recently deleted or trash folder as a safety net for a while.
Delete in small batches
Delete one folder or one day at a time and look at the result. If you remove the wrong copy, restore it from the trash while it is still there.
Do not forget screenshots and big videos
Old screenshots and long videos often free more space than duplicates. Sort by size, review the largest items and keep what matters.
Where Rain Cleaner for Android fits
Rain Cleaner for Android finds duplicate photos (by content, not by name), old screenshots and big videos, shows them to you, and asks for your confirmation through Android's own dialog before anything is removed. No ads. You can do the same by hand with the Files app - the app just collects the candidates in one place.