My clock frequency is 4Mhz and I want the timer to overflow at 255 in 10 second.
In general, the timers of microcontrollers aren't capable of timing events as long as 10 seconds.
I calculate that even in 16-bit mode (max count 65535), with the maximum 256x prescale, the timer would overflow in about 4.2 seconds.
(at 4 MHz, each clock cycle is 250nS. Multiply that by 256 for the max prescaler value (64 us for each tick out of the prescaler), and the amount that you'd count (up to 65536 * 64us = 4.1943 s))
(This could be wrong in the details; I don't program PICs every day. But it should be approximately correct in principle.)
The usual solution is to set up a convenient and possible timer (say, 10ms) to cause an interrupt, and then handle additional counting in software.