Failed to write factory almanac (65536)

I'm trying out the GNSS sample for the nRF9161 DK. I am trying to enable minimal assistance, but I get an error message with error code 65536:

*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
[00:00:09.889,648] <err> projectnamehere: Failed to write factory almanac

The error in question occurs here:
https://github.com/nrfconnect/sdk-nrf/blob/54f8a63b22d4b94398774334aa85ace6a5e20459/samples/cellular/gnss/src/assistance_minimal.c#L115

Any ideas what might be going on here? GNSS still works afterwards and TTFF is about a minute.

BTW, the modem firmware is latest (mfw_nrf91x1_2.0.1).

Related