While including <modem/modem_info.h> as first of the include list I get the following build error:
nrf/include/modem/modem_info.h:298:33: error: unknown type name 'size_t'
note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
I see that the error on nRF Connect v3.2.3, main branch of sdk-nrf repository has not change regarding this, so i assume bug is still present.