A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hmmm.
The problem seems to have been corrected on my system and all STOCKHISTORY formulas have worked correctly for the past several days on the same spreadsheets that had been giving the problem.
Having said that, I have noticed the responses to STOCKHISTORY occasionally, but rarely, are MIA, but they seem to recover normal operation after a minute or two. I have seen the occasional #SPILL!, but that can usually be traced to a problem in the spreadsheet. No other errors have been noticed.
You may want to check the Excel version you are using. I have Version 16.89.1 (24091630). I have also noticed an automatic MS Office update since then but don't know if that was to Excel or another app in the suite.
This is on a MacBook Pro using Sonoma 14.6.1