Chosen Solution

I have an iPhone 8plus 64gb and it’s iCloud locked, if I change the motherboard from a smashed iPhone 8 plus which is iCloud unlocked, would it solve my issue? And Can I put the motherboard from a 8plus 128gb iPhone into iPhone 8 plus 64 gb ?

Yes, you can swap the motherboards, but, be aware that a lot of features will disable due to apple part pairing with the logic board. You gonna lose True Tone, Battery Health Reporting, Touch ID, etc. The list is off the top of my head, but you will have less functionality from the phone. If you do not need or require these features then you might as well swap them over :)