You will have to do some research. You will need to find out the part number for the pre-amp in the assembly. It is possible the pick up system is in the service manual for the instrument, but likely not, as manufacturers will change what system they are using on a model and often don't include them in the manual.
I would start by calling Yamaha and seeing if you can get the part numbers directly from them: (888) 892-6242
You can order the service manual from Yamaha here: https://usa.yamaha.com/support/parts_manuals/index.html, and parts at https://www.yamaha24x7.com, although it requires web site registration (just an e-mail address really)
I checked the parts site for your guitar model since I have a log in, and didn't see the pick-up listed, just the regular guitar body parts (tuners etc.)
You may have to call Yamaha and find out what manufacturer made the pickup system and get the part numbers and possibly replacement part directly from the pick-up manufacturer.
In some cases when a guitar model hasn't been made for a few years it is impossible to find a direct replacement. I have been able to replace pre-amp boards with non-stock boards with some clever rebuilding, but that may not be a project you want to undertake.