Man, this is a tough one...the pistol suggestions are not "bad," but the concern is if you have to go hands on, you cannot safely place that pistol any place that would be "safe." Obviously, you can mitigate this issue entirely by just sleeping with the Glock in a holster on your person
The other concerns with the pistol are hit probability, the impact of the hits when you do connect, and mag capacity. I can't count the number of people I have known who have been shot by pistols who have survived the encounter. One shooting that occurred very recently in my area included the bogey getting hit about 12 times in the torso, took an AR round through the jaw, and survived. If you're talking multiple bogeys, or even just two as in the video, mag capacity should be a concern.
I have trained many, many people in pistol shooting over the years. One thing many students will talk about is the difficulty in shooting a pistol accurately, even on a square range. There are several issues when discussing the ability to accurately deliver pistol rounds, in addition to having all of the fundamentals down 100%. These issues include the physical attributes of the gun against a rifle, which are the facts that they are much smaller, lighter, and shorter. The shorter sight radius and lighter weight of the gun mean that the introduction of even the most minimal muscle movement can dramatically impact a shooter's POA/POI. These characteristics can work against a shooter on a static, one-way range.
Now, let's take into account the fact that you're likely going to be rousted from a deep sleep, heart rate gonna go from about 60bpm to 180bpm in one second, your hit probability will diminish significantly. Unfortunately, the physiological stress the body endures by something as traumatic as a home invasion robbery can never be duplicated in any other environment. You cannot run long enough, do enough pushups, or push a turd out hard enough to mimic fight or flight. This leaves individuals in a precarious situation that they simply don't know what their body is going to do if/when such an event occurs, and thus, they cannot train alongside those sympathetic, bodily responses.
As far as the shotgun suggestions go, I can't disagree with much of it. I believe the shotgun is an excellent option. The only criticism I can think of comes back to mag capacity.
I know it is not popular in the field of options, but given the specific scenario outlined in the OP's video, I'd vote the venerable AK-47, chambered in the standard 762x39 be a consideration. The 762x39 is going to go through drywall and other barriers better, which may or may not be a good thing. However, we're also talking short distances, and the x39 is going to hit harder than the 5.56. An average x39 round is going to hit at about 1500ft/lbs of energy vs the 5.56's 12-1300ish.
Either way, the actions shown in that video are unbelievably brazen. These actions are never going to decrease. In fact, with justice systems nationwide acting with the limp-wristed force of a sledgehammer vs a cupcake, they will be increasing.
At the end of the day, I find these discussions fascinating, and enjoy the mental exercises involved in working them out. It is just too bad that they occur at the expense of good people being victimized.
Hang in there, OP. Regardless of whatever firearm system you end up choosing, just make sure you and your wife are well-versed and trained in it's application.