This does not give viewable images directly, but you can confirm whether the file contains intact JPEG data:
When Android devices generate galleries, they create massive .thumbdata files inside the DCIM/.thumbnails folder to load image previews faster. Free thumbdata viewers scan these databases to recover photos that may have been accidentally deleted. 🛠️ Best Free Thumbdata Viewer Tools thumbdata viewer free