You need to have:

#define AUTO_BED_LEVELING_GRID_POINTS 5

to do a G29 n5