No skill points are gained during the negative effect. They are gained all at once the moment the effect expires.
Amount of skill point gain largely depends on how long the negative effect lasts.
Max Energy has a minor 5-minute stress resistance debuff, so drinking one every 5 minutes is a cost-effective way to gain skill points.
"Obdolbos 2" cocktail injector has multiple 30-minute debuffs and is usually double the price of the Max Energy. It can be employed on longer raids or if your Immunity and Metabolism are high level.