For a long time, Tesla was plagued by quality control issues. During its first few years of mass volume production at Fremont reports of panel gaps and paint problems were frequent. However, the firm seems to have turned a corner in the past 3 years or so. Particularly since the opening of Giga Shanghai, which is renowned for its production standards.
That said, in the past few weeks there has been an abundance of videos and posts about serious Model Y build quality issues. A number of YouTubers, like Dylan Hong, recently bought 2022 Model Ys and made videos about the unexpected build quality issues they had experienced.