I want to use mesh configuration (Bluetooth mesh submodule) to save data to the flash memory of nRF52840. The code works fine and I can save data to flash using mesh_config_entry_set function but the problem appears when I use nrf_delay_ms function in the for loop along with mesh_config_entry_set function. The code crashes in this case with the following message in the debug terminal "<t: 52734>, app_error_weak.c, 105, Mesh assert at 0x00031D4C (:0)"

This is the assert that is causing the crash
--- mesh_config.c -- 320 -----------------------------------
mesh_config_entry_flags_t * p_flags = entry_flags_get(p_params, id);
NRF_MESH_ASSERT_DEBUG(*p_flags & MESH_CONFIG_ENTRY_FLAG_BUSY);
Can anyone suggest a solution to this issue.