Dude I feel ya. I had that last summer. Cut my toenail wrong I guess, it became lodged in the side of the toe overtime, turned yellow with infection. The pain was intense for such a minor thing though if it was hit by my shoe.
I can’t remember the product but I got something in the supermarket that was like a circular bandage pad. It helped immediately, numbed the area under it, which was the ingrown nail. After a few days of those things, the toe was numb enough that I was able to cut back the nail (still hurt like hell, but could do it without passing out lol). That seemed to fix it.