I've also had lots of facepalm moments like this. so much that it's contributed to my OCD and unwanted thoughts/recollections.
dunno if this would work for you, but one of my strategies is to attach important things to my body or clothes (but not jackets, hats, or other items that can be easily taken off).
useful tools for this:
- neck or cross-body lanyard (for phone, keys, heavy things)
- stretchy lanyard or chain
- retracting badge reel
- Fanny packs/bum bags/sling bags
- customizable molle gear and pouches
along with these, i adopted a policy of never setting things down on a public/outdoor surface. the object is always in one of two locations: my hand, or it's designated pouch/pocket.