Tech giants that saw good times during pandemic are dealing with a "hangover" compounded by inflation and the war in Ukraine