The board probably wants profit now (they predict less growth) so the management needs to cut the costs.
This AI story is a just an excuse. If there is not AI they will say “high gas prices”. Or “inflation”. Or whatever …
It is true that the companies like Meta, Oracle and Microsoft are laying off due to AI but because they need money to build compute power.
There are some companies who maybe do lay offs due to AI replacing employees. But this might not be the one.