3.1 As a part of fix you need to upgrade to 22.214.171.124b70 and post upgrading to correct the corrupted release & phase you need to execute the script making a REST call, which requires an input file of release-id, phase-id.
In case if you don't have complete list of corrupted phase ids, you may run the script on ALL phases of active ( non DONE ) releases.
You may use the following SQL query to get the list of all active phases:
select releases.id, ",", phase.id from releases, phase where phase.release_id =releases.id and releases.release_status != 'DONE' order by releases.release_creation_date desc;
If there are too many active phases (more than 100,000) - you may share the export of the following database tables - and we would be able to detect the ids of the corrupted phases and can assist you on same.