Needless to say, if you bought a harness manufactured between those dates you need to replace it. You also need to confirm you don't have different problem. Replacing parts as guess can get real expensive plus not get your bike fixed.
If you plan on working on anything electrical on your bike you need a digital multi meter. You can buy an inexpensive meter. And a wiring diagram.
Not an endorsement, just an example:
https://www.walmart.com/ip/Digital-Multimeter-10709/14521541When the bike stalls. lift the tank and remove the connector to the fuel pump. With the key on if you do not have power at the brown/white wire the problem is probably either the FI relay or wiring to that point.