Security: launch pest parser in a thread with timeout to prevent infinite loop
If provided with a specifically corrupted format, the pest parser may in some cases lock into an infinite loop. To protect against it, it is necessary to create a timeout and consider that the format is invalid if the timeout is reached.