A friend recently had a lot of problems with his bike misbehaving. It was an intermittent problem which came and went. In the end it turned out to be just a blocked fuel filter.
Having cleaned out all of the goop which had accumulated on the old filter the problem went away and hasn’t reappeared, although that might be down to fitting an additional external filter which gets cleaned regularly.
Many years ago I used to work for the oil company ESSO, so believe me when I tell you that you should never, ever fill up in a petrol station if there’s a tanker lorry on the forecourt. Over the years the underground fuel tanks in petrol stations get all sorts of contaminants in them, water, rust, sand etc.
When the tanker delivers its load of fuel all that rubbish gets stirred up and goes swirling around in the underground tanks. If you fill up at this point all of that rubbish ends up in your bike.
So, be warned.