AES GCM Sample Not Working

I'm attempting to build the aes_gcm sample using NCS 2.4.2 for a custom board with an nRF9160. However, I can just build the project for the nrf9160dk_nrf9160_ns target since no peripherals are required. The project builds properly as is and runs, but the operation to generate a random key (psa_generate_key) fails with error PSA_ERROR_NOT_SUPPORTED. This makes sense since I've read in other support threads that having CONFIG_TFM_PROFILE_TYPE_MINIMAL or CONFIG_TFM_PROFILE_TYPE_NOT_SET set in prj.conf essentially gets the project to build with tfm but crypto operations will be significantly limited or unavailable. When I attempt to set CONFIG_TFM_PROFILE_TYPE_MEDIUM, nothing is printed out to the console. Any suggestions as to what could be going wrong?

Related