Hi and welcome,
that is a good supp plan you are using! Similar to what has helped my son with tics/OCD from tourette syndrome.
mine takes his P5P on waking and sometimes has breakfast within 20 min or so of taking it, depending on his hunger level. I dont think it has to be too long before...more just that one needs to talk on an empty stomach for best absorption I think...but mrsD and others here will have better details on that
I am sure it will not be harmful taking it with food....it is just more efficient when taken before