you have to set the max feed rates (you haven’t provided any configuration.h so im presuming...)
ie find in configuration.h
#define DEFAULT_MAX_FEEDRATE {300, 300, 5, 25} // (mm/sec)
the 5 is the default Z max feed rate
ie find in configuration.h
#define DEFAULT_MAX_FEEDRATE {300, 300, 5, 25} // (mm/sec)
the 5 is the default Z max feed rate