To downgrade a LEGO® Education SPIKE™ Prime hub, you need to use the Hub Downgrade tool: https://spikelegacy.legoeducation.com/hubdowngrade
To use the hub downgrade tool, you will need to use a Chrome Browser on a ChromeOS or macOS laptop. It is not possible to do this on Windows 10 or 11 as Windows does not have the drivers needed for this.
Follow the instructions in the hub downgrade tool to downgrade your hub. Once it has been downgraded, the hub will need to go through one last upgrade step inside the SPIKE Legacy App to be useable in SPIKE Legacy.