This is a very real phenomenon. The people who are laid off receive a shock, of course, and may be upset at first, but they go on to something new and hopefully exciting. You on the other hand still have the worry hanging over you, you miss your friends, you did not get new replacement friends, and in some cases you are also being asked to do more work (hours per day) or more kinds of work than before in order to make up for the missing people. This is no fun at all.
Your choices are limited but they do exist. First, since you've been given an explanation for the layoffs, you can evaluate how you feel about that. Does focusing on digital products make sense? In a firm that focuses on digital products, are you a more valued team member than you were in the previous more diverse firm? Are your options for the future better? Is the company likely to be stronger? Or is this the start of a death spiral? If you feel the layoffs will improve the company and/or your prospects within it, then chin up! You got through a tough time and can look forward to a better one. If you need more friends, look for some in places other than at work. If you feel the layoffs made things worse then you may want to join the folks who have started looking.
Second, take some time to think about what a job is to you and what you want from it. Stability in a time of disruption can slide into stagnation, and that can lead to closure and collapse. Or, when someone notices they've been stagnating, to closing divisions and laying people off. A safe harbor, a place you can sign up and work there for 40 years then retire, just doesn't exist any more in many industries. How important is it to you? Some people don't care where they work any more than they care which exact bus or streetcar they catch on the way to work. If you're able to adjust your attitude to care more about your work than who your employer happens to be, the stress may lift away from you.
Third, be ready for whatever may happen, this is a time of change. A friend who gets a job elsewhere may contact you and say "come join me, it's great here!". There may be more layoffs. The atmosphere in your department may worsen. Have your resume up to date now so you can react quickly if you need to. Gain some insight into what you want and don't want in an employer, again so you can react quickly. Thinking about things before you get blindsided by change is the best way to prepare for change.