I need help identifying a component and how to check if itd faulty
The component does look like an inductor to me. One possibility is that there is a bad solder connection to the component. Use something nonconducting, like a wooden pencil or plastic pen, to wiggle the component around in various directions. If the supply works sometimes when you do that then you probably just need to reflow the solder connections.