After downloading the DMG file, verify its integrity by checking the file's hash value:
diskutil unmountDisk /dev/diskN
The most straightforward way to download the macOS Catalina 10.15.7 DMG file is directly from Apple. Here's how: