What is this script attached to an NPC? Since there is no kind of control variable this script would loop endlessly every frame. Don't think the add equip is the problem here, but that's easy to fix using a control variable.
scn StaticHoloGeneratorCompanionScriptref rContainershort doneBegin GameModeif done == 1 rContainer.equipItem StaticHoloFieldBlueCompanion 1 1 set done to 2endifif done == 0set rContainer to GetContainerif rContainer.IsActor && rContainer != player rContainer.equipItem StaticHoloGeneratorCompanion 0 1 rContainer.addItem StaticHoloFieldBlueCompantion 1 1 set done to 1 ;next frame he will equip as its higher in the scriptendIfendifEnd
Edit: BTW the TES wiki has some info indicating that getcontainer can return 0 for a few frames when the game is loaded, and that would cause a crash as you are calling reference functions on null. Anytime I use a reference function I'll try to make sure to add a check like if Rvar == 0 return, or start your code with if rvar != 0.