I have two apps that use the keychain. One is working fine while the other stops after few hours.
I've noticed that if I remove that app from the task manager, I get a very limited access to the keychain and the app works partially.
It still happens in iOS 15.1 beta. It worked fine in previous iOS versions