Sometimes the harder you try to solve something, the more elusive the solution seems to be. In situations like this I often find it best to step back from it, ask out loud "I wonder what the solution to this might look like" and then let if go. Once I've done that I would then go and spend time doing something that brings me joy. Quite often we get answers to puzzles when we least expect them. If an answer doesn't come, this approach at least stops you from getting any more frustrated with the situation.