PID's not saving in Config Override

For some reason PID’s are not saving or changing in the config override when it is ran. I have manually tried using M500 and it still doesn’t save. This is the GCODE file I am using to run them:

M117PID Tuning Heated Bed;
M303 E1 S100
G4 S360;
M117PID Tuning Complete;
M500;
G4 S5
M117;

Imported from wikidot

Can you try running each command in turn by hand ?
If that still doesn’t work it’s possible your SD card is corrupted, try formatting it.