Try deleting the block, optionally also deleting the block type, upgrade the relevant collection and reregister the block type, e.g. for GcpCredentials
:
prefect block delete gcp-credentials/block_name
prefect block type delete gcp-credentials
pip install prefect_gcp --upgrade
prefect block register -m prefect_gcp