Long standing "bug"? in iOS

I have had a bug related to Message/Camera relationship on my iPhone SE 2020.
I am not sure when it started… but I noticed it first in some early iteration of iOS 14, in which it continued throughout. I don’t recall if iOS 13 was ever on this phone.
I am experiencing the same phenomenon in iOS 15.1.
It’s an occasional glitch.

When writing a text and attempting to navigate, via the Camera icon in Messages, to Photos, in order to attach a photo. Both Messages and Camera quit.

It is possible that a hard reset can remediate, temporarily.