I had the exact same problem a few weeks ago. In my case, it occurred after swapping valves, after which the hole in the rim tape was probably too large or too loose, and it leaked air around the valve. Fresh rim tape solved the problem.
For what it's worth, I usually puncture the rim tape with a needle first, then push the valve through, so the hole is round, and as small as possible.