eSIMs can not be moved between devices.
Once an eSIM is added to a device, the SIM profile is loaded on that device and the one time QR code is no longer valid.

There is currently no method for moving an eSIM from one device to another device as the codes used take into account the unique ID of each phone.

If you have a new device your best option is to plan ahead using all the credit and data balance of your eSIM, then purchase a new eSIM for your new device.