You can replace the LED light control board in the refrigerator compartment (the board incorporates the LEDs - part #WPW10515058). Here's a video that shows how to do it.
You could try replacing the faulty LEDs themselves, but this is only if they're faulty and not if there's a problem on the board that affects only the ones that don't work. I can't find a schematic for it, you may have better luck ;-)
The freezer door switch is part # W11457217. (supersedes part # WP2321285). Here's a video that shows how to change it. (shown as light interlock switch in the tech sheet wiring diagram p.3 linked below).
If the freezer door switch is not the problem (disconnect the power to the refrigerator and use an Ohmmeter to test it) but it is the freezer LED light itself, the freezer LED board is part # WPW10515057. Here's a video that shows how to change it
The freezer door switch, besides operating the freezer light (and possibly the refrigerator lights - see below) also prevents the ice/water dispenser working if the freezer door is open.
Looking at the wiring diagram, it seems that either door opened will also operate the lights in the other compartment. You can prove this by opening the refrigerator door and then the freezer door and then manually operate the freezer door switch and check if the freezer light stays on. The same the other way- open the freezer door then open the refrigerator door and then manually operate the door switch on the control panel and check if the refrigerator light stays on.
Switch part # 2219875, is now superseded by part # W2149705 but this is the switch in the control panel for the refrigerator lights (and possibly the freezer lights - see above) Here's a video that shows how to change it. (shown as light switch in the tech sheet wiring diagram p.3 linked below)
Search online using the part number only for the freezer door switch if testing shows it is faulty and the refrigerator LED control board (and freezer LED board if the switch is OK), to find suppliers that suit you best.
Here's the tech sheet for the refrigerator if you ever need to have the wiring diagram (simplified - see p.3 and detailed - see p.2) and the diagnostic tests.
Hopefully this is of some help.