What could cause problematic queries to disappear from QueryStore?
QueryStore has a variety of settings for configuration but you need to be aware that there is a cleanup job that removes things that are too old or exceed one of the other configuration thresholds - read more about them here:-
https://www.sqlskills.com/blogs/erin/query-store-settings/