Highly recommend reviewing it. https://homenetworkguy.com/how-to/migrate-opnsense-to-new-hardware/
The instructions in this article worked perfectly for me. I moved to different hardware and switching from 1Gbps to 2.5Gbps interfaces with different names as well as locations for WAN, etc. This article lays out what to look for when making changes. Highly recommend reviewing it.https://homenetworkguy.com/how-to/migrate-opnsense-to-new-hardware/