The reason you've had more bad results than good is because you haven't fully learned how to use LLMs yet. They are not as simple as they first appear. I think a lot of people think using a coding agent is just a case of firing it up and telling it what to do and expecting to get it right first time. When it doesn't they just think it's no good and like you abandon the effort.
The reason a technical interviewer will be asking this question is because they want to see how you adapt to using new technologies, LLMs being one of the most disruptive technology that has hit the tech industry since at least the internet. You will likely be expected to use LLMs and they will want to know that you are someone who truly understands the capabilities of them - upsides and downsides, where to use them, what guardrails you need to put in place.
I'd encourage you to revisit the re-factoring task you worked on. Work out why it didn't work, work out what didn't work about it and if you have the chance try again, but use different techniques, there's a lot of conversations going on about what people find working and not working - try to join that conversation. Try to document what you learn. Then in the interview discuss these rather than just saying you gave up. The interviewer isn't going to check up on how successful your project was, they just want to know how you think and how you approach problems.