Stock sales or dividends when not a CA resident

I was a California resident until December 2014. I moved abroad since then. I keep filing my Federal taxes using TurboTax and it says I don't need to file state taxes. So far it worked, but I just received a letter from CA FTB that assessed a CA state tax for 2021 as I sold a relatively high amount of stock that was reported by Charles Schwab to both IRS and CA FTB. I dowloaded TurboTax CA State Tax 2021 and tried to go through the filing steps. By default, even though I chose "full year CA non-resident" status it calculates a State Tax due unless I say none of that revenue is from CA source. I am confused. How do I know the stock sale or dividend income is from CA source or not? Most of these companies, if not all, are headquartered outside California. For example, Amazon and Tesla--stocks of which I sold--aren't CA companies. 

How do I handle this situation? CA FTB leaves me until 6/18 to respond or pay.