I would suggest you to reach UiPath support team to help on this.
If you want to do it your self, Take your DB backup before doing any changes.
Lift and shift method is always best approach for version gap,Refer This
Coming to mirror - > DON’T DO THAT
You can install 2019 orch with new SQL DB as UAT and do the lift and shift method. 2019 → 2023
Note:- You should have license for UAT orchestrator. Don’t switch license between uat and prod licenses.