The sdk_config.h configuration file for ble_app_hrs_freertos example contains following definition:
#define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
This macro should be defined as 4. When it is defined as 1 then the function bsp_init() fails (NRF_ERROR_NO_MEM).
I think this is a mistake made during migration to nrfx drivers. SDK 14.2 contains this definition:
#define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 4
In SDK 15.0 this is present as well but is not used. Due to migration to nrfx drivers, the ble_app_hrs_freertos example uses NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS whih is incorrectly defined as 1.