Totally sane. Most layoffs are an effort to boost stock prices because some executives made a dumb fucking decision.
Being laid off is absolutely not a comment on your worth as an employee or a human being. You should give companies as much of your blood sweat and tears as they’d give you - none. With some extremely rare exceptions being an employee is just a transaction.