Cloudstack Provider errors

New Terraform user here. I am having a bit of an issue using the latest version 0.4.0-pre of the Cloudstack provider. I’ve added the declaration in the config file as per instructions:

terraform {
  required_providers {
    cloudstack = {
      source = "cloudstack/cloudstack"
      version = "0.4.0-pre"

However, when I try terraform init I get the following error:
$ terraform init

Initializing the backend...

Initializing provider plugins...
- Finding cloudstack/cloudstack versions matching "0.4.0-pre"...
- Installing cloudstack/cloudstack v0.4.0-pre...
│ Error: Failed to install provider
│ Error while installing cloudstack/cloudstack v0.4.0-pre: checksum list has unexpected SHA-256 hash
│ c031e5466360394787d1c408c853a853ed4d6e171a611ae30c0c5111f20e21b9 (expected a36b77f35a0eeff9fbd5bb2fd68b986bae6023ac49e6f035ea43deec4043b3f4)

If I remove the version line I get version 0.3.0 instead of the latest one. Please let me know how to resolve the above issue?