Typically, when an installer is not working correctly or is reported as corrupted, AND, you are trying to use it on a Mac that has been in storage, the issue may not be the installer, but the system time on the Mac.
As such, I suggest that you check that first, as follows:
- Open Terminal.
- Run: date
- If the date is clearly wrong, correct it with: sudo sntp -sS time.apple.com ,or manually: sudo date MMDDHHmmYY
If the date was correct to begin with, then it may be possible that the downloaded installer is corrupted. In that case, delete the existing installer, and then, use the following command in the Terminal to download the full installer: softwareupdate --fetch-full-installer --full-installer-version 13.7.6
Ref: How to Download macOS Sonoma, Ventura, Monterey, Big Sur, Catalina & Mojave Full Installers - Mr. Macintosh