Bucket tool not working

Pls help. Bucket tool won’t fill out a shape I’ve drawn with pencil. It worked before, but I needed to repaint it but this time it won’t work. I went to Drawing>optimise>flatten, I enabled strokes view and made sure there were no gaps, I set the pencil stroke back to default (it was a stylised texture stroke before). I’ve restarted the program, restarted the computer, and even used different computers. It works on other parts of the drawing on the same layer but not this specific part. I’ve tried everything I know jsbxlwbckae idk what to do anymore ;-; help meee

Try duplicating the layer and then try filling the duplicate.
Try drawing an invisible stroke box inside the shape and then try filling again.