Is pigment grade titanium dioxide likely to contain any impurities that are toxic?
According to the MSDS for titanium dioxide, the substance itself is suspected of causing cancer. See, for example, this link.

My opinion is that, in general, it's not a good idea to use reagents from unknown sources for any purpose, especially something like sunblock.