Using an old Solidity version exposes the contract to known compiler bugs (e.g. ABI coder issues, storage bugs) fixed in later releases.
pragma solidity 0.8.24; // recent, fewer known issues
Largest recorded losses in the same failure class — related, not the same bug:
The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0079 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.