I found several of these larvae under the loose bark of a cut down beech at the forest edge. Length about 6-10 mm. Lonchaeidae larvae? Or just Nematodes?
This larva is not Sciaridae for sure, - these should have clearly expressed black head capsule, which is not visible on your photo.
Unfortunately, I don't know what other family could it belong to...