You are correct in everything you say in your first paragraph. That said, it's fair to say that "sharply rising interest rates" are also part of the macroeconomic environment. You can say that it was silly for all these tech companies and investors to think the free money spigot would go on for so long, but the key driver for all of the fall in tech company valuations and employment levels is rising interest rates.
> If there are problems, they are Gitlab problems, not macroeconomic problems.
Yet literally every big tech company I can think of has had similar levels of layoffs. If these were Gitlab-specific problems you wouldn't expect the slowdowns and layoffs to hit everyone.