Use this guide to remove or replace a faulty logic board in your iPhone 8.
It's important to note that each iPhone 8 logic board and Touch ID fingerprint sensor are paired at the factory, so replacing the logic board will disable Touch ID unless you also install a replacement home button that has been properly paired to your new logic board.