OSError: [Errno 22] Invalid argument when use tap-postgres with target-bigquery

I working with Window Server. I use singer-python for daily data synchronization. When i run independent tap-postgres the output is pretty good. But when combined with target-bigquery, I got an error from tap-postgres.

INFO Failed to retrieve SSL status
    INFO Selected streams: ('poseidon-public-po_order')
    INFO No currently_syncing found
    INFO Beginning sync of stream(poseidon-public-po_order) with sync method(incremental)
    INFO Stream poseidon-public-po_order is using incremental replication with replication key id
    CRITICAL (Errno 22) Invalid argument
    Traceback (most recent call last):
      File "c:usersadministratorappdatalocalprogramspythonpython36librunpy.py", line 193, in _run_module_as_main
        "__main__", mod_spec)
      File "c:usersadministratorappdatalocalprogramspythonpython36librunpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "C:UsersAdministratorAppDataLocalProgramsPythonPython36Scriptstap-postgres.exe__main__.py", line 7, in <module>
      File "c:usersadministratorappdatalocalprogramspythonpython36libsite-packagestap_postgres__init__.py", line 711, in main
        raise exc
      File "c:usersadministratorappdatalocalprogramspythonpython36libsite-packagestap_postgres__init__.py", line 708, in main
        main_impl()
      File "c:usersadministratorappdatalocalprogramspythonpython36libsite-packagestap_postgres__init__.py", line 702, in main_impl
        do_sync(conn_config, args.properties, args.config.get('default_replication_method'), state)
      File "c:usersadministratorappdatalocalprogramspythonpython36libsite-packagestap_postgres__init__.py", line 669, in do_sync
        state = sync_traditional_stream(conn_config, stream, state, sync_method_lookup(stream('tap_stream_id')), end_lsn)
      File "c:usersadministratorappdatalocalprogramspythonpython36libsite-packagestap_postgres__init__.py", line 558, in sync_traditional_stream
        state = do_sync_incremental(conn_config, stream, state, desired_columns, md_map)
      File "c:usersadministratorappdatalocalprogramspythonpython36libsite-packagestap_postgres__init__.py", line 467, in do_sync_incremental
        sync_common.send_schema_message(stream, (replication_key))
      File "c:usersadministratorappdatalocalprogramspythonpython36libsite-packagestap_postgressync_strategiescommon.py", line 31, in send_schema_message
        write_schema_message(schema_message)
      File "c:usersadministratorappdatalocalprogramspythonpython36libsite-packagestap_postgressync_strategiescommon.py", line 15, in write_schema_message
        sys.stdout.flush()
    OSError: (Errno 22) Invalid argument
    Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1252'>
    OSError: (Errno 22) Invalid argument