A surge of federal warnings about addictive prescription painkillers and a flood of discounted competitors has hit Endo Pharmaceuticals hard, and the Irish-owned but…