In our live environment we had Alwayson configured but for some reason it was causing instability to database and we got lots of timeout expired errors also
Unable to access availability database 'xxxx' because the database replica is not in the PRIMA
Unable to access availability database 'xxxx' because the database replica is not in the PRIMA