Verify in-memory references when loading a model (#26764)
### Description
When loading the model verify that in-memory references point to an
existing and valid OrtValue as if created my ModelEditor.
### Motivation and Context
This prevents reading from arbitrary memory location when loading the
model.
---------
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>