I'm sorry from your loss. My sister died recently too . I know how hard it is. But you have her child who needs you and is a great reason for you to get and stay sober. You can prove to them you are sober and capable of looking after your niece. She needs you.
but if you keep drinking she will be taken into care. It's never too late to get sober. I wish you well.