I would very much recommend against throwing random hardware at a problem you don’t understand in hopes of fixing it. In the automotive industry they call it “shooting the parts cannon” and it usually ends up being a waste of time & money.
Try and pinpoint the problem first and only replace hardware if you are sure it is the problem. I would be very surprised if your problem ends up being anything to do with the actual software on the phone.