You would need to upgrade your macOS to at least 10.15 (Catalina) , but ideally 11 (Big Sur) or newer for the latest WhatsApp Desktop version.

Unfortunately, the no longer supports macOS High Sierra (10.13.6).