How did you try to install it? Have you try to search for the error message? I found a similar one
It seems that people who experienced this error tried to install Docker Desktop using home brew. So you can try to download the file from the Docker’s website and install manually.