probably the best thing you can do is setup a shared mem dump for tech support to look at:
exec sp_configure "dump on conditions", 1
-- one time dump for error 940 including data cache pages (optional)
exec sp_shmdumpconfig ’add’, error, 940, 1, <dumpdir>, <dumpfile>, include_page
Otherwise, I've seen something about making sure you have enough "open objects" and "open indexes" configured:
exec sp_countmetadata 'all'
If reuses are happening, increase these settings.