Does the 2038 problem affect Bitcoin?
Not the block header. Bitcoin's nTime field is an unsigned 32-bit number, so it counts to 2106. Software around it that stores time as a signed 32-bit number can still break in 2038.
BSV block 978,431 header time is 2026-12-05 00:35:55 UTC.
Block height as a clock counts blocks. It is not the header's time field, and it does not overflow when a 32-bit clock does. Today's block time on that clock is the BSV height, not a Unix timestamp stored in the header.
What the two limits are
The year 2038 problem is the signed 32-bit Unix limit. A signed 32-bit integer stops at 2,147,483,647 seconds after 1970-01-01 00:00:00 UTC, which is 2038-01-19 03:14:07 UTC.
In Bitcoin Core, CBlockHeader::nTime is a uint32_t. GetBlockTime() returns that value widened to int64_t, so that accessor is not a signed 32-bit clock. The developer reference describes the same header field as a uint32_t Unix epoch time. An unsigned 32-bit value stops at 4,294,967,295 seconds, which is 2106-02-07 06:28:15 UTC. Bitcoin Core issue 19581 describes that unsigned rollover as 2106-02-07. This page does not choose a fix, and it does not say the chain stops in 2038.
The header layout has version, previous hash, merkle root, time, nBits, and nonce. Height is not one of those fields. A program can still copy nTime into a signed 32-bit integer and break in 2038 while the header field has range left. That is a property of the signed type. It is not Bitcoin Core's uint32_t field overflowing.
Questions
What is the year 2038 problem?
It is the overflow of a signed 32-bit Unix timestamp at 2038-01-19 03:14:07 UTC. That is 2,147,483,647 seconds after 1970-01-01 00:00:00 UTC.
Will Bitcoin stop working in 2038?
Not because the block header runs out of dates. nTime is an unsigned 32-bit field, so it runs to 2106. Software that stores that time as a signed 32-bit integer can still break in 2038. This page does not say the chain stops.
What happens to Bitcoin in 2106?
The unsigned 32-bit nTime field cannot represent a later second. Its last value is 4,294,967,295, which is 2106-02-07 06:28:15 UTC. This page does not pick a rule change.
What is nTime in a Bitcoin block?
It is the block header's time field. Bitcoin Core declares it as uint32_t. The developer reference calls it a uint32_t Unix epoch time set by the miner.